home *** CD-ROM | disk | FTP | other *** search
/ Amiga CD-Sensation: Golden Games / Amiga CD-Sensation - Ausgabe 2 - Golden Games (1996)(GTI - Schatztruhe)(DE)[!].iso / Brain Activity / Rubik / source / gadgets.c < prev    next >
C/C++ Source or Header  |  1990-08-11  |  12KB  |  845 lines

  1. /*    gadgets for rubik   MJR 1st Feb '90 (ain't touched this for a month! */
  2.  
  3. struct TextAttr ta = 
  4. {
  5. "topaz.font",
  6. 8,
  7. 0,
  8. FPF_ROMFONT
  9. };
  10.  
  11. unsigned short chip rollrightdata[] =
  12. {
  13. 0x0000,0x01E0,0x0000,0x01E0,0x0000,0x01E0,0x0000,0x03C0,
  14. 0x0000,0x03C0,0xFF00,0x07C0,0xFE00,0x0780,
  15. 0xFC00,0x0F80,0xFE00,0x3F00,0xFF80,0xFE00,0xFFFF,0xFC00,
  16. 0xCFFF,0xF800,0x83FF,0xE000,0x007F,0x0000,
  17. 0x0000,0x01E0,0x0000,0x01E0,0x0000,0x01E0,0x0000,0x03C0,
  18. 0x0000,0x03C0,0xFF00,0x07C0,0xFE00,0x0780,
  19. 0xFC00,0x0F80,0xFE00,0x3F00,0xFF80,0xFE00,0xFFFF,0xFC00,
  20. 0xCFFF,0xF800,0x83FF,0xE000,0x007F,0x0000,
  21. 0x0000,0x01E0,0x0000,0x01E0,0x0000,0x01E0,0x0000,0x03C0,
  22. 0x0000,0x03C0,0xFF00,0x07C0,0xFE00,0x0780,
  23. 0xFC00,0x0F80,0xFE00,0x3F00,0xFF80,0xFE00,0xFFFF,0xFC00,
  24. 0xCFFF,0xF800,0x83FF,0xE000,0x007F,0x0000
  25. };
  26.  
  27. unsigned short chip rollleftdata[] =
  28. {
  29. 0x007F,0x0000,0x83FF,0xE000,0xCFFF,0xF800,0xFFFF,0xFC00,
  30. 0xFF80,0xFE00,0xFE00,0x3F00,0xFC00,0x0F80,
  31. 0xFE00,0x0780,0xFF00,0x07C0,0x0000,0x03C0,0x0000,0x03C0,
  32. 0x0000,0x01E0,0x0000,0x01E0,0x0000,0x01E0,
  33. 0x007F,0x0000,0x83FF,0xE000,0xCFFF,0xF800,0xFFFF,0xFC00,
  34. 0xFF80,0xFE00,0xFE00,0x3F00,0xFC00,0x0F80,
  35. 0xFE00,0x0780,0xFF00,0x07C0,0x0000,0x03C0,0x0000,0x03C0,
  36. 0x0000,0x01E0,0x0000,0x01E0,0x0000,0x01E0,
  37. 0x007F,0x0000,0x83FF,0xE000,0xCFFF,0xF800,0xFFFF,0xFC00,
  38. 0xFF80,0xFE00,0xFE00,0x3F00,0xFC00,0x0F80,
  39. 0xFE00,0x0780,0xFF00,0x07C0,0x0000,0x03C0,0x0000,0x03C0,
  40. 0x0000,0x01E0,0x0000,0x01E0,0x0000,0x01E0
  41. };
  42.  
  43. unsigned short chip yawleftdata[] =
  44. {
  45. 0x001E,0x03E0,0x7E00,0xC000,0xE000,0xFFC0,0xFFE0,
  46. 0xFFF0,0xFFFA,0xFFFC,0xFFF8,0xFFF0,0x7FE0,0x1FC0,
  47. 0x001E,0x03E0,0x7E00,0xC000,0xE000,0xFFC0,0xFFE0,
  48. 0xFFF0,0xFFFA,0xFFFC,0xFFF8,0xFFF0,0x7FE0,0x1FC0,
  49. 0x001E,0x03E0,0x7E00,0xC000,0xE000,0xFFC0,0xFFE0,
  50. 0xFFF0,0xFFFA,0xFFFC,0xFFF8,0xFFF0,0x7FE0,0x1FC0
  51. };
  52.  
  53. unsigned short chip yawrightdata[] =
  54. {
  55. 0xF000,0x0F80,0x00FC,0x0006,0x000E,0x07FE,0x0FFE,
  56. 0x1FFE,0xBFFE,0x7FFE,0x3FFE,0x1FFE,0x0FFC,0x07F0,
  57. 0xF000,0x0F80,0x00FC,0x0006,0x000E,0x07FE,0x0FFE,
  58. 0x1FFE,0xBFFE,0x7FFE,0x3FFE,0x1FFE,0x0FFC,0x07F0,
  59. 0xF000,0x0F80,0x00FC,0x0006,0x000E,0x07FE,0x0FFE,
  60. 0x1FFE,0xBFFE,0x7FFE,0x3FFE,0x1FFE,0x0FFC,0x07F0
  61. };
  62.  
  63. unsigned short chip climbdata[] =
  64. {
  65. 0x1FF0,0x3FF8,0x2FF8,0x27FC,0x27FC,
  66. 0x27FC,0x67FC,0x47FC,0x47FC,0x47FC,
  67. 0x43F8,0x81F0,0x80E0,0x8040,0x8080,
  68. 0x1FF0,0x3FF8,0x2FF8,0x27FC,0x27FC,
  69. 0x27FC,0x67FC,0x47FC,0x47FC,0x47FC,
  70. 0x43F8,0x81F0,0x80E0,0x8040,0x8080,
  71. 0x1FF0,0x3FF8,0x2FF8,0x27FC,0x27FC,
  72. 0x27FC,0x67FC,0x47FC,0x47FC,0x47FC,
  73. 0x43F8,0x81F0,0x80E0,0x8040,0x8080
  74. };
  75.  
  76. unsigned short chip divedata[] =
  77. {
  78. 0x8080,0x8040,0x80E0,0x81F0,0x43F8,
  79. 0x47FC,0x47FC,0x47FC,0x67FC,0x27FC,
  80. 0x27FC,0x27FC,0x2FF8,0x3FF8,0x1FF0,
  81. 0x8080,0x8040,0x80E0,0x81F0,0x43F8,
  82. 0x47FC,0x47FC,0x47FC,0x67FC,0x27FC,
  83. 0x27FC,0x27FC,0x2FF8,0x3FF8,0x1FF0,
  84. 0x8080,0x8040,0x80E0,0x81F0,0x43F8,
  85. 0x47FC,0x47FC,0x47FC,0x67FC,0x27FC,
  86. 0x27FC,0x27FC,0x2FF8,0x3FF8,0x1FF0
  87. };
  88.  
  89. struct Image col6i =
  90. {
  91. 0,0,
  92. 7,7,3,
  93. NULL,
  94. 0,6,
  95. NULL
  96. };
  97.  
  98. struct Image col5i =
  99. {
  100. 0,0,
  101. 7,7,3,
  102. NULL,
  103. 0,5,
  104. NULL
  105. };
  106.  
  107. struct Image col4i =
  108. {
  109. 0,0,
  110. 7,7,3,
  111. NULL,
  112. 0,4,
  113. NULL
  114. };
  115.  
  116. struct Image col3i =
  117. {
  118. 0,0,
  119. 7,7,3,
  120. NULL,
  121. 0,3,
  122. NULL
  123. };
  124.  
  125. struct Image col2i =
  126. {
  127. 0,0,
  128. 7,7,3,
  129. NULL,
  130. 0,2,
  131. NULL
  132. };
  133.  
  134. struct Image col1i =
  135. {
  136. 0,0,
  137. 7,7,3,
  138. NULL,
  139. 0,1,
  140. NULL
  141. };
  142.  
  143. struct Image rollright =
  144. {
  145. 0,0,                /*    LeftEdge, TopEdge        */
  146. 27,14,3,            /*    Width, Height, Depth    */
  147. &rollrightdata[0],
  148. 7,0,                /*    PlanePick, PlaneOnOff    */
  149. NULL                /*    Pointer to next Image    */
  150. };
  151.  
  152. struct Image rollleft =
  153. {
  154. 0,0,                /*    LeftEdge, TopEdge        */
  155. 27,14,3,            /*    Width, Height, Depth    */
  156. &rollleftdata[0],
  157. 7,0,                /*    PlanePick, PlaneOnOff    */
  158. NULL                /*    Pointer to next Image    */
  159. };
  160.  
  161. struct Image yawleft =
  162. {
  163. 0,0,                /*    LeftEdge, TopEdge        */
  164. 15,14,3,            /*    Width, Height, Depth    */
  165. &yawleftdata[0],
  166. 7,0,                /*    PlanePick, PlaneOnOff    */
  167. NULL                /*    Pointer to next Image    */
  168. };
  169.  
  170. struct Image yawright =
  171. {
  172. 0,0,                /*    LeftEdge, TopEdge        */
  173. 15,14,3,            /*    Width, Height, Depth    */
  174. &yawrightdata[0],
  175. 7,0,                /*    PlanePick, PlaneOnOff    */
  176. NULL                /*    Pointer to next Image    */
  177. };
  178.  
  179. struct Image climb =
  180. {
  181. 0,0,                /*    LeftEdge, TopEdge        */
  182. 14,15,3,            /*    Width, Height, Depth    */
  183. &climbdata[0],
  184. 7,0,                /*    PlanePick, PlaneOnOff    */
  185. NULL                /*    Pointer to next Image    */
  186. };
  187.  
  188. struct Image dive =
  189. {
  190. 0,0,                /*    LeftEdge, TopEdge        */
  191. 14,15,3,            /*    Width, Height, Depth    */
  192. &divedata[0],
  193. 7,0,                /*    PlanePick, PlaneOnOff    */
  194. NULL                /*    Pointer to next Image    */
  195. };
  196.  
  197. struct IntuiText minustext = {0,7,JAM2,0,1,&ta,(UBYTE *)"-",NULL};
  198.  
  199. struct IntuiText plustext = {0,7,JAM2,0,1,&ta,(UBYTE *)"+",NULL};
  200.  
  201. struct IntuiText abouttext = {0,7,JAM2,1,1,&ta,(UBYTE *)"ABOUT",NULL};
  202.  
  203. struct IntuiText helptext = {0,7,JAM2,0,1,&ta,(UBYTE *)"HELP",NULL};
  204.  
  205. struct IntuiText slowertext = {0,7,JAM2,0,0,&ta,(UBYTE *)"SLOWER",NULL};
  206.  
  207. struct IntuiText fastertext = {0,7,JAM2,0,0,&ta,(UBYTE *)"FASTER",NULL};
  208.  
  209. struct IntuiText backtext = {0,7,JAM2,1,1,&ta,(UBYTE *)"BACK",NULL};
  210.  
  211. struct IntuiText fronttext = {0,7,JAM2,1,1,&ta,(UBYTE *)"FRONT",NULL};
  212.  
  213. struct Gadget colour6 =
  214. {
  215. NULL,
  216. 224,177,7,7,
  217. GADGHCOMP | GADGIMAGE,
  218. RELVERIFY,
  219. BOOLGADGET,
  220. (APTR)&col6i,
  221. NULL,
  222. NULL,
  223. NULL,
  224. NULL,
  225. 27,
  226. NULL
  227. };
  228.  
  229. struct Gadget colour5 =
  230. {
  231. NULL,
  232. 214,177,7,7,
  233. GADGHCOMP | GADGIMAGE,
  234. RELVERIFY,
  235. BOOLGADGET,
  236. (APTR)&col5i,
  237. NULL,
  238. NULL,
  239. NULL,
  240. NULL,
  241. 26,
  242. NULL
  243. };
  244.  
  245. struct Gadget colour4 =
  246. {
  247. NULL,
  248. 204,177,7,7,
  249. GADGHCOMP | GADGIMAGE,
  250. RELVERIFY,
  251. BOOLGADGET,
  252. (APTR)&col4i,
  253. NULL,
  254. NULL,
  255. NULL,
  256. NULL,
  257. 25,
  258. NULL
  259. };
  260.  
  261. struct Gadget colour3 =
  262. {
  263. NULL,
  264. 224,167,7,7,
  265. GADGHCOMP | GADGIMAGE,
  266. RELVERIFY,
  267. BOOLGADGET,
  268. (APTR)&col3i,
  269. NULL,
  270. NULL,
  271. NULL,
  272. NULL,
  273. 24,
  274. NULL
  275. };
  276.  
  277. struct Gadget colour2 =
  278. {
  279. NULL,
  280. 214,167,7,7,
  281. GADGHCOMP | GADGIMAGE,
  282. RELVERIFY,
  283. BOOLGADGET,
  284. (APTR)&col2i,
  285. NULL,
  286. NULL,
  287. NULL,
  288. NULL,
  289. 23,
  290. NULL
  291. };
  292.  
  293. struct Gadget colour1 =
  294. {
  295. NULL,
  296. 204,167,7,7,
  297. GADGHCOMP | GADGIMAGE,
  298. RELVERIFY,
  299. BOOLGADGET,
  300. (APTR)&col1i,
  301. NULL,
  302. NULL,
  303. NULL,
  304. NULL,
  305. 22,
  306. NULL
  307. };
  308.  
  309. struct Gadget blueminus = 
  310. {
  311. NULL,
  312. 301,186,8,9,
  313. GADGHCOMP,
  314. RELVERIFY,
  315. BOOLGADGET,
  316. NULL,
  317. NULL,
  318. &minustext,
  319. NULL,
  320. NULL,
  321. 21,
  322. NULL
  323. };
  324.  
  325. struct Gadget greenminus = 
  326. {
  327. NULL,
  328. 277,186,8,9,
  329. GADGHCOMP,
  330. RELVERIFY,
  331. BOOLGADGET,
  332. NULL,
  333. NULL,
  334. &minustext,
  335. NULL,
  336. NULL,
  337. 20,
  338. NULL
  339. };
  340.  
  341. struct Gadget redminus = 
  342. {
  343. NULL,
  344. 253,186,8,9,
  345. GADGHCOMP,
  346. RELVERIFY,
  347. BOOLGADGET,
  348. NULL,
  349. NULL,
  350. &minustext,
  351. NULL,
  352. NULL,
  353. 19,
  354. NULL
  355. };
  356.  
  357. struct Gadget blueplus = 
  358. {
  359. NULL,
  360. 301,168,8,9,
  361. GADGHCOMP,
  362. RELVERIFY,
  363. BOOLGADGET,
  364. NULL,
  365. NULL,
  366. &plustext,
  367. NULL,
  368. NULL,
  369. 18,
  370. NULL
  371. };
  372.  
  373. struct Gadget greenplus = 
  374. {
  375. NULL,
  376. 277,168,8,9,
  377. GADGHCOMP,
  378. RELVERIFY,
  379. BOOLGADGET,
  380. NULL,
  381. NULL,
  382. &plustext,
  383. NULL,
  384. NULL,
  385. 17,
  386. NULL
  387. };
  388.  
  389. struct Gadget redplus = 
  390. {
  391. NULL,
  392. 253,168,8,9,
  393. GADGHCOMP,
  394. RELVERIFY,
  395. BOOLGADGET,
  396. NULL,
  397. NULL,
  398. &plustext,
  399. NULL,
  400. NULL,
  401. 16,
  402. NULL
  403. };
  404.  
  405. /*    need this lot twice for AddGadget to work! (sigh!)    */
  406.  
  407. struct Gadget colour6a =
  408. {
  409. NULL,
  410. 224,177,7,7,
  411. GADGHCOMP | GADGIMAGE,
  412. RELVERIFY,
  413. BOOLGADGET,
  414. (APTR)&col6i,
  415. NULL,
  416. NULL,
  417. NULL,
  418. NULL,
  419. 27,
  420. NULL
  421. };
  422.  
  423. struct Gadget colour5a =
  424. {
  425. NULL,
  426. 214,177,7,7,
  427. GADGHCOMP | GADGIMAGE,
  428. RELVERIFY,
  429. BOOLGADGET,
  430. (APTR)&col5i,
  431. NULL,
  432. NULL,
  433. NULL,
  434. NULL,
  435. 26,
  436. NULL
  437. };
  438.  
  439. struct Gadget colour4a =
  440. {
  441. NULL,
  442. 204,177,7,7,
  443. GADGHCOMP | GADGIMAGE,
  444. RELVERIFY,
  445. BOOLGADGET,
  446. (APTR)&col4i,
  447. NULL,
  448. NULL,
  449. NULL,
  450. NULL,
  451. 25,
  452. NULL
  453. };
  454.  
  455. struct Gadget colour3a =
  456. {
  457. NULL,
  458. 224,167,7,7,
  459. GADGHCOMP | GADGIMAGE,
  460. RELVERIFY,
  461. BOOLGADGET,
  462. (APTR)&col3i,
  463. NULL,
  464. NULL,
  465. NULL,
  466. NULL,
  467. 24,
  468. NULL
  469. };
  470.  
  471. struct Gadget colour2a =
  472. {
  473. NULL,
  474. 214,167,7,7,
  475. GADGHCOMP | GADGIMAGE,
  476. RELVERIFY,
  477. BOOLGADGET,
  478. (APTR)&col2i,
  479. NULL,
  480. NULL,
  481. NULL,
  482. NULL,
  483. 23,
  484. NULL
  485. };
  486.  
  487. struct Gadget colour1a =
  488. {
  489. NULL,
  490. 204,167,7,7,
  491. GADGHCOMP | GADGIMAGE,
  492. RELVERIFY,
  493. BOOLGADGET,
  494. (APTR)&col1i,
  495. NULL,
  496. NULL,
  497. NULL,
  498. NULL,
  499. 22,
  500. NULL
  501. };
  502.  
  503. struct Gadget blueminusa = 
  504. {
  505. NULL,
  506. 301,186,8,9,
  507. GADGHCOMP,
  508. RELVERIFY,
  509. BOOLGADGET,
  510. NULL,
  511. NULL,
  512. &minustext,
  513. NULL,
  514. NULL,
  515. 21,
  516. NULL
  517. };
  518.  
  519. struct Gadget greenminusa = 
  520. {
  521. NULL,
  522. 277,186,8,9,
  523. GADGHCOMP,
  524. RELVERIFY,
  525. BOOLGADGET,
  526. NULL,
  527. NULL,
  528. &minustext,
  529. NULL,
  530. NULL,
  531. 20,
  532. NULL
  533. };
  534.  
  535. struct Gadget redminusa = 
  536. {
  537. NULL,
  538. 253,186,8,9,
  539. GADGHCOMP,
  540. RELVERIFY,
  541. BOOLGADGET,
  542. NULL,
  543. NULL,
  544. &minustext,
  545. NULL,
  546. NULL,
  547. 19,
  548. NULL
  549. };
  550.  
  551. struct Gadget blueplusa = 
  552. {
  553. NULL,
  554. 301,168,8,9,
  555. GADGHCOMP,
  556. RELVERIFY,
  557. BOOLGADGET,
  558. NULL,
  559. NULL,
  560. &plustext,
  561. NULL,
  562. NULL,
  563. 18,
  564. NULL
  565. };
  566.  
  567. struct Gadget greenplusa = 
  568. {
  569. NULL,
  570. 277,168,8,9,
  571. GADGHCOMP,
  572. RELVERIFY,
  573. BOOLGADGET,
  574. NULL,
  575. NULL,
  576. &plustext,
  577. NULL,
  578. NULL,
  579. 17,
  580. NULL
  581. };
  582.  
  583. struct Gadget redplusa = 
  584. {
  585. NULL,
  586. 253,168,8,9,
  587. GADGHCOMP,
  588. RELVERIFY,
  589. BOOLGADGET,
  590. NULL,
  591. NULL,
  592. &plustext,
  593. NULL,
  594. NULL,
  595. 16,
  596. NULL
  597. };
  598.  
  599. struct Gadget setupgadget = 
  600. {
  601. NULL,
  602. 199,139,53,9,
  603. GADGHBOX,
  604. RELVERIFY,
  605. BOOLGADGET,
  606. NULL,
  607. NULL,
  608. NULL,
  609. NULL,
  610. NULL,
  611. 15,
  612. NULL
  613. };
  614.  
  615. struct Gadget solvegadget = 
  616. {
  617. &setupgadget,
  618. 199,127,53,9,
  619. GADGHBOX,
  620. RELVERIFY,
  621. BOOLGADGET,
  622. NULL,
  623. NULL,
  624. NULL,
  625. NULL,
  626. NULL,
  627. 14,
  628. NULL
  629. };
  630.  
  631. struct Gadget normalgadget = 
  632. {
  633. &solvegadget,
  634. 199,115,53,9,
  635. GADGHBOX,
  636. RELVERIFY,
  637. BOOLGADGET,
  638. NULL,
  639. NULL,
  640. NULL,
  641. NULL,
  642. NULL,
  643. 13,
  644. NULL
  645. };
  646.  
  647. struct Gadget aboutgadget = 
  648. {
  649. &normalgadget,
  650. 265,139,41,9,
  651. GADGHCOMP,
  652. RELVERIFY,
  653. BOOLGADGET,
  654. NULL,
  655. NULL,
  656. &abouttext,
  657. NULL,
  658. NULL,
  659. 12,
  660. NULL
  661. };
  662.  
  663. struct Gadget helpgadget = 
  664. {
  665. &aboutgadget,
  666. 270,115,32,9,
  667. GADGHCOMP,
  668. RELVERIFY,
  669. BOOLGADGET,
  670. NULL,
  671. NULL,
  672. &helptext,
  673. NULL,
  674. NULL,
  675. 11,
  676. NULL
  677. };
  678.  
  679. struct Gadget slowergadget = 
  680. {
  681. &helpgadget,
  682. 261,83,48,7,
  683. GADGHCOMP,
  684. RELVERIFY,
  685. BOOLGADGET,
  686. NULL,
  687. NULL,
  688. &slowertext,
  689. NULL,
  690. NULL,
  691. 10,
  692. NULL
  693. };
  694.  
  695. struct Gadget fastergadget = 
  696. {
  697. &slowergadget,
  698. 200,83,48,7,
  699. GADGHCOMP,
  700. RELVERIFY,
  701. BOOLGADGET,
  702. NULL,
  703. NULL,
  704. &fastertext,
  705. NULL,
  706. NULL,
  707. 9,
  708. NULL
  709. };
  710.  
  711. struct Gadget backgadget = 
  712. {
  713. &fastergadget,
  714. 276,23,33,9,
  715. GADGHCOMP,
  716. RELVERIFY,
  717. BOOLGADGET,
  718. NULL,
  719. NULL,
  720. &backtext,
  721. NULL,
  722. NULL,
  723. 8,
  724. NULL
  725. };
  726.  
  727. struct Gadget frontgadget = 
  728. {
  729. &backgadget,
  730. 197,23,41,9,
  731. GADGHCOMP,
  732. RELVERIFY,
  733. BOOLGADGET,
  734. NULL,
  735. NULL,
  736. &fronttext,
  737. NULL,
  738. NULL,
  739. 7,
  740. NULL
  741. };
  742.  
  743. struct Gadget rollrightgadget =
  744. {
  745. &frontgadget,
  746. 244,56,27,14,        /*    posn. and size    */
  747. GADGHCOMP |
  748. GADGIMAGE,            /*    flags            */
  749. RELVERIFY,            /*    activation        */
  750. BOOLGADGET,            /*    gadget type        */
  751. (APTR)&rollright,    /*    image pointer    */
  752. NULL,                /*    alternate image    */
  753. NULL,                /*    text            */
  754. NULL,                /*    mutual exclude    */
  755. NULL,                /*    special info    */
  756. 1,                    /*    gadget ID        */
  757. NULL                /*    user data        */
  758. };
  759.  
  760. struct Gadget rollleftgadget =
  761. {
  762. &rollrightgadget,
  763. 244,42,27,14,        /*    posn. and size    */
  764. GADGHCOMP |
  765. GADGIMAGE,            /*    flags            */
  766. RELVERIFY,            /*    activation        */
  767. BOOLGADGET,            /*    gadget type        */
  768. (APTR)&rollleft,    /*    image pointer    */
  769. NULL,                /*    alternate image    */
  770. NULL,                /*    text            */
  771. NULL,                /*    mutual exclude    */
  772. NULL,                /*    special info    */
  773. 2,                    /*    gadget ID        */
  774. NULL                /*    user data        */
  775. };
  776.  
  777. struct Gadget yawleftgadget =
  778. {
  779. &rollleftgadget,
  780. 242,20,15,14,        /*    posn. and size    */
  781. GADGHCOMP |
  782. GADGIMAGE,            /*    flags            */
  783. RELVERIFY,            /*    activation        */
  784. BOOLGADGET,            /*    gadget type        */
  785. (APTR)&yawleft,        /*    image pointer    */
  786. NULL,                /*    alternate image    */
  787. NULL,                /*    text            */
  788. NULL,                /*    mutual exclude    */
  789. NULL,                /*    special info    */
  790. 3,                    /*    gadget ID        */
  791. NULL                /*    user data        */
  792. };
  793.  
  794. struct Gadget yawrightgadget =
  795. {
  796. &yawleftgadget,
  797. 257,20,15,14,        /*    posn. and size    */
  798. GADGHCOMP |
  799. GADGIMAGE,            /*    flags            */
  800. RELVERIFY,            /*    activation        */
  801. BOOLGADGET,            /*    gadget type        */
  802. (APTR)&yawright,    /*    image pointer    */
  803. NULL,                /*    alternate image    */
  804. NULL,                /*    text            */
  805. NULL,                /*    mutual exclude    */
  806. NULL,                /*    special info    */
  807. 4,                    /*    gadget ID        */
  808. NULL                /*    user data        */
  809. };
  810.  
  811. struct Gadget climbgadget =
  812. {
  813. &yawrightgadget,
  814. 222,41,14,15,        /*    posn. and size    */
  815. GADGHCOMP |
  816. GADGIMAGE,            /*    flags            */
  817. RELVERIFY,            /*    activation        */
  818. BOOLGADGET,            /*    gadget type        */
  819. (APTR)&climb,        /*    image pointer    */
  820. NULL,                /*    alternate image    */
  821. NULL,                /*    text            */
  822. NULL,                /*    mutual exclude    */
  823. NULL,                /*    special info    */
  824. 5,                    /*    gadget ID        */
  825. NULL                /*    user data        */
  826. };
  827.  
  828.  
  829. struct Gadget divegadget =
  830. {
  831. &climbgadget,
  832. 222,56,14,15,        /*    posn. and size    */
  833. GADGHCOMP |
  834. GADGIMAGE,            /*    flags            */
  835. RELVERIFY,            /*    activation        */
  836. BOOLGADGET,            /*    gadget type        */
  837. (APTR)&dive,        /*    image pointer    */
  838. NULL,                /*    alternate image    */
  839. NULL,                /*    text            */
  840. NULL,                /*    mutual exclude    */
  841. NULL,                /*    special info    */
  842. 6,                    /*    gadget ID        */
  843. NULL                /*    user data        */
  844. };
  845.